// 关于 用户 的路由

const express = require('express');

const router = express.Router();

// 执行函数
const userHandler = require('../router_handler/user_handler');

// 数据校验
const Joi = require('joi');
const expressJoi = require('@escook/express-joi');
const userSchema = require('../schema/user_schema');

// 登录路由
router.post('/login', expressJoi(userSchema.login_schema),userHandler.login);
// 注册路由
router.post('/register', expressJoi(userSchema.reg_schema),userHandler.register);

// 导出路由
module.exports = router;